package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.Travel;
import cn.wolfcode.luowowo.article.domain.TravelContent;
import cn.wolfcode.luowowo.article.query.TravelQuery;
import cn.wolfcode.luowowo.article.query.MytravelQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 游记服务接口
 */
public interface ITravelService {
    PageInfo query(TravelQuery qo);
    Travel get(Long id);

    TravelContent getComment(Long id);

    List<Travel> getTravelsViennumTop3(Long id);

    Long saveOrUpdate(Travel travel);

    List<Travel> list();

    /**
     * 根据用户id获取修改时间最新的前5篇文章
     * @param id
     * @return
     */
    List<Travel> list5ForReleaseTimeByUserId(Long id);

    List<Travel> listAllByUserId(Long id);

    PageInfo<Travel> queryAllTravelByUserId(MytravelQueryObject qo);
}
